﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KMFrame.Permission.Util;

namespace SzCourt.WebSite.reporter
{
    public partial class addFile : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (SessionBox.CheckUserSession())
            {
                getSessionInfo();
            }
            else
            {
                Response.Redirect("/reporter/login.aspx");
            }
        }

        private void getSessionInfo()
        {
            if (!SessionBox.CheckUserSession())
            {
                Response.Redirect("/reporter/login.aspx");
            }
            this.spUserName.InnerHtml = SessionBox.GetUserSession().UserName;
            this.spDate.InnerHtml = DateTime.Now.ToString();
        }
    }
}